<div ng-controller="CooperationCtrl" ng-init="addAction()" class="sui-form form-horizontal">
    <form name="cooperationForm" novalidate ng-submit="CooperationAdd()">
        <ul class="sui-breadcrumb">
            <li><a href="#/cooperation/list">{{'partnership' | translate}}{{'List'| translate}}</a></li>
            <li class="active">{{cooperation.grade_id?'edit':'add_new' | translate}}</li>
        </ul>
        <div class="control-group" ng-if="fenxiaoprice.id">
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'cooperate_id' | translate}}:</label>
            <div class="controls">
                {{fenxiaoprice.cooperate_id}}
            </div>
        </div>
   
         <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'distributor_nick' | translate}}:</label>
            <div class="controls">
                <select-distributor  ng-show="!cooperation.cooperate_id " ng-model="cooperation.distributor_id" callback="addfenxiao(distributor)"></select-distributor>
                 <span ng-show="cooperation.cooperate_id ">{{cooperation.distributor_nick}}</span>
              </div>
        </div>
 
        <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'product_line_name' | translate}}:</label>
            <div class="controls">
             <select-productcat ng-model="cooperation.product_line"  callback="addproductcat(productcat)"></select-productcat>
            </div>
        </div>
     
         <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'grade_id' | translate}}:</label>
            <div class="controls">
            <select-fenxiaograde ng-model="cooperation.grade_id" callback="addfenxiaograde(fenxiaograde)"></select-fenxiaograde>
            </div>
        </div>
         <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'distribution_ways' | translate}}:</label>
            <div class="controls">
                <trade-type ng-model="cooperation.trade_type">
            </div>
        </div>
       <!--   <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'supplier_id' | translate}}:</label>
            <div class="controls">
                <input type="number"  name="supplier_id" ng-model="cooperation.supplier_id" class="
                input-xlarge">
            </div>
        </div>
        <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'supplier_nick' | translate}}:</label>
            <div class="controls">
                <input type="text" name="supplier_nick" ng-model="cooperation.supplier_nick" class="
                input-xlarge">
            </div>
        </div> -->
        <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'cooperation_start_date' | translate}}:</label>
            <div class="controls">
                <input name="start_date" datetimepicker ng-model="cooperation.start_date" class="
                input-xlarge" required>
                <div ng-show="!cooperationForm.start_date" class="sui-msg msg-error msg-clear help-block error">
                    <div class="msg-con">{{'required'| translate}}</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>
        <div class="control-group" >
            <label class="control-label v-top"><b style="color: #f00;">*</b> {{'cooperation_end_date' | translate}}:</label>
            <div class="controls">
                <input name="end_date" datetimepicker ng-model="cooperation.end_date" class="
                input-xlarge" required>
                <div ng-show="!cooperationForm.end_date" class="sui-msg msg-error msg-clear help-block error">
                    <div class="msg-con">{{'required'| translate}}</div>
                    <s class="msg-icon"></s>
                </div>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label"></label>
            <div class="controls">
                <button type="submit" id="submit" class="sui-btn btn-primary" ng-disabled="!cooperationForm.$valid||!cooperation.distributor_id||!cooperation.product_line">
                    <span>{{'save'|translate}}</span>
                </button>
            </div>
        </div>
    </form>
</div>
